package com.zhongyu.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyBatisPlusConfig {


    @Bean
    public PaginationInterceptor paginationInterceptor(){//拦截器
        return new PaginationInterceptor();
    }
     /* @Bean
    public AutoMapper autoMapper(@Autowired(required=false) ApplicationContext applicationContext) {
        return new AutoMapper(applicationContext, new String[] { "com.zhongyu.pojo" }); //配置ApplicationContext及实体类所在包
    }*/
}
